const arr1 = [1, 2, 3, 4]
const arr2 = [5, 6, 3, 7, 8]
// arr1 = [...arr1, ...arr2]
arr1.push(...arr2)
console.log(arr1)
